import {request} from "../../request";

export function getTrayById(id){
    return request({
        url:`/lswms/tray/${id}`,
        method:'get'
    })
}


export function getTrayPage(data){
    return request({
        url:'/lswms/tray/page',
        method:'put',
        data:data
    })
}

export function putTray(data){
    return request({
        url:'/lswms/tray',
        method:'put',
        data:data
    })
}
export function postTray(data){
    return request({
        url:'/lswms/tray',
        method:'post',
        data:data
    })
}

export function deleteTray(data){
    return request({
        url:`/lswms/tray`,
        method:'delete',
        data:data
    })
}
export function exportTray(data){
    return request({
        url:`/lswms/tray/export`,
        method:'get',
        data:data,
        responseType:'blob'
    })
}
